package com.leaf.spring.y201906.day12.websocket;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class WebMvcConfig implements WebMvcConfigurer {

	@Override
	public void addViewControllers(ViewControllerRegistry registry) {
		registry.addViewController("/ws").setViewName("/day190612/ws");
		registry.addViewController("/login").setViewName("/day190612/login");
		registry.addViewController("/chat").setViewName("/day190612/chat");
	}

}
